package com.eascs.ant.data.entity.phone;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 京东手机价格信息实体类
 * @author hzp
 *
 */
public class JdPhoneResult implements Serializable{

	private static final long serialVersionUID = 7552339145428281953L;

	private String name;
	
	private String price;
	
	private String commit;//评论数
	
	private String shop;//经营店铺
	
	private String icon;//销售口号
	
	private String url ;
	
	private String logo;//品牌
	
	private Date crawler_time;

	public String getName() {
		return name;
	}

	public JdPhoneResult setName(String name) {
		this.name = name;
		return this;
	}

	public String getPrice() {
		return price;
	}

	public JdPhoneResult setPrice(String price) {
		this.price = price;
		return this;
	}

	public String getCommit() {
		return commit;
	}

	public JdPhoneResult setCommit(String commit) {
		this.commit = commit;
		return this;
	}

	public String getShop() {
		return shop;
	}

	public JdPhoneResult setShop(String shop) {
		this.shop = shop;
		return this;
	}

	public String getIcon() {
		return icon;
	}

	public JdPhoneResult setIcon(String icon) {
		this.icon = icon;
		return this;
	}

	public String getUrl() {
		return url;
	}

	public JdPhoneResult setUrl(String url) {
		this.url = url;
		return this;
	}

	public String getLogo() {
		return logo;
	}

	public JdPhoneResult setLogo(String logo) {
		this.logo = logo;
		return this;
	}

	public Date getCrawler_time() {
		return crawler_time;
	}

	public JdPhoneResult setCrawler_time(Date crawler_time) {
		this.crawler_time = crawler_time;
		return this;
	}

	public static void main(String[] args) throws ParseException{
		String startDate = "2017-12-26";
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		long time = sdf.parse(startDate).getTime() + 1000*3600*24;
		System.out.println(sdf.format(new Date(time)));
	}
}
